/**
 * @author wyr
 * @description 通用Select
 * @param 参考element-api  http://element-cn.eleme.io/#/zh-CN/component/select
 * @event on-mounted - 列表加载完 返回值：[{id,name}]
 */


import {
  getApiAsaldepotOwnerh5
} from '@/model';


export function fetchMix(query?: any) {

  async function getApiAsaldepot(query:any){
    const { list = [] } = await getApiAsaldepotOwnerh5(query);
    return list.map((item:any) => {
      return {
        ...item,
        id: item.id,
        name: item.name
      }
    });
  }

  
  return {getApiAsaldepot}
}


